<?php
class class_rpcChanger
{	
	function method_hacer ($params, $error){
		require("conexion.php");
		$result = "";
		$result->remoto = $SUCURSAL;
		if($WORKSPACE == "devel"){
			$result->rpcLocal = $DEVELSUCLOCAL;
			$result->rpcRemoto = $DEVELSUCREMOTO;
		} else {
			$result->rpcLocal = "services/";
			if ($WORKSPACE == "production" && $SUCURSAL=="avellaneda") {
				$result->rpcRemoto = "http://sofambar.no-ip.org/services/";
			} else if ($WORKSPACE == "production" && $SUCURSAL=="caraffa") {
				$result->rpcRemoto = "http://sofambar2.no-ip.org/services/";
			}
		}
		return $result;
	}
}	
?>